import request from '@/axios';

export const questionApi = (current, size, params) => {
  return request({
    url: '/position/courseware/list',
    method: 'get',
    params: {
      current,
      size,
      ...params,
    },
  });
};

export const addQuestion = data => {
  return request({
    url: 'position/question/save',
    method: 'post',
    data,
  });
};
